package net.ustc.javamemcached.protocol;

import java.util.HashMap;
import java.util.Map;

import org.jboss.netty.buffer.ChannelBuffer;

public class Protocols {
	private String protocolName = "javamemcached";
	private String version = "snapshot";
	private String wordSpliter = " ";
	private String lineSpliter = "\r\n";
	
	private Map<ChannelBuffer,Protocol> protocolMap = null;
	
	public Protocols(Map<ChannelBuffer, Protocol> protocols){
		this.protocolMap = protocols;
	}
	
	public Protocols(String protocolName, String version, String wordSpliter,
			String lineSpliter, Map<ChannelBuffer, Protocol> protocols) {
		super();
		this.protocolName = protocolName;
		this.version = version;
		this.wordSpliter = wordSpliter;
		this.lineSpliter = lineSpliter;
		this.protocolMap = protocols;
	}

	public Map getProtocolMap() {
		return protocolMap;
	}
}
